<LayoutEditFormBox :loading="load">
    <template slot="main">
        <!-- 添加原因对话框 -->
        <el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  title="添加原因" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
            <el-input v-model="reason" placeholder="请输入售后原因内容"></el-input>
            <span slot="footer" class="dialog-footer">
                <el-button @click="dialogVisible = false">取 消</el-button>
                <el-button type="primary" @click="createReason();">确 定</el-button>
            </span>
        </el-dialog>
        <el-form ref="editForm" :model="form" label-width="200px" label-position="left">

            <LayoutCell>
                <LayoutCellItem title="基础">



                    <el-form-item label="发票功能" prop="isOpenInvoice">
                        <div class="cell">
                            <div class="l">
                                <el-switch v-model="form.isOpenInvoice" :active-value="1" :inactive-value="0">
                                </el-switch>
                            </div>
                            <div class="r">
                                <span class="alt1" v-if="form.isOpenInvoice==1">已开启</span>
                                <span class="alt2" v-if="form.isOpenInvoice==0">已关闭</span>
                                开启后商家店和子门店均可设置发票功能
                            </div>
                        </div>
                    </el-form-item>




                </LayoutCellItem>

                <LayoutCellItem title="其他">


                    <el-form-item v-if="form.isOpenInvoice" label="加收税费" prop="isAddTax">

                        <div class="cell">
                            <div class="l">
                                <el-switch v-model="form.isAddTax" :active-value="1" :inactive-value="0">
                                </el-switch>
                            </div>
                            <div class="r">买家选择开具发票，在原商品实付金额基础上增加发票税费</div>
                        </div>
                    </el-form-item>
                    <el-form-item v-if="form.isOpenInvoice" label="可开具发票类型">
                        <div class="checkbox" v-for="(item,index) in form.invoiceSettingItemLst " :key="index">
                            <div class="t1">
                                <el-checkbox v-model="item.isOpen" :true-label="1" :false-label="0">
                                    {{item.invoiceTypeDesc}}
                                </el-checkbox>
                            </div>
                            <div class="t2">
                                <el-input-number controls-position="right" v-model="item.taxRate"
                                    :disabled="item.isOpen==0" @blur="blur(index)" :min="0" :max="100" :precision="2"
                                    label="税点"></el-input-number><span class="s1">%</span>
                            </div>


                        </div>
                    </el-form-item>



                </LayoutCellItem>

            </LayoutCell>


        </el-form>
    </template>
    <template slot="footer">
        <el-button type="primary" @click="submit()">确定</el-button>
    </template>
</LayoutEditFormBox>